package md.mru.core.repositories;

import md.mru.core.domains.FolderState;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @author sergiu.marin
 * @since 01.04.2014
 */
public interface FolderStateRepository extends JpaRepository<FolderState, Long> {

    @Query("SELECT s FROM FolderState s WHERE s.id=:folderStateId")
    FolderState loadFolderState(@Param(value = "folderStateId") long folderStateId);

}
